package com.qiang.test01;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

public class MyThreadDemo02 {
    public static void main(String[] args) {
        /*ExecutorService executorService = Executors.newCachedThreadPool();
        ThreadPoolExecutor es = (ThreadPoolExecutor) executorService;
        int poolSize = es.getPoolSize();
        System.out.println(poolSize);
        executorService.submit(()->{
            System.out.println(Thread.currentThread().getName()+"minin");
        });
        int poolSize1 = es.getPoolSize();
        System.out.println(poolSize1);

        ExecutorService executorService1 = Executors.newFixedThreadPool(10);
        executorService.submit(()->{
            System.out.println(Thread.currentThread().getName());
        });*/
        System.out.println(Thread.currentThread().getName());
    }
}
